<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.*,dao.*,service.*,servlet.*,java.util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
Product p =(Product)session.getAttribute("P");
String pid=p.getP_id();
%>
<form   method="post" action="<%=request.getContextPath()%>/ProductServlet" enctype="multipart/form-data">
<input  type="hidden" name="method" value="update">
商品编号:<input type="text" name="p_id" value=<%=pid %>><br>
商品类型:<input type="text" name="p_type" value=<%=p.getP_type() %>><br>
商品名字:<input type="text" name="p_name"value=<%=p.getP_name() %> ><br>
商品图片:<input type="file" name="p_image"><br>
商品数量:<input type="text" name="p_quantity"value=<%=p.getP_quantity() %>><br>
<input type="submit" name="submit" value="提交"/>
<input type="reset" name="reset" value="重置"/>
</form>
</body>
</html>